home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.sol < prev    next >
Makefile  |  1996-06-05  |  5KB  |  158 lines

  1. # $Id: makefile.sol,v 1.26 1996/06/05 17:14:43 mikes Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36. #
  37.  
  38.  
  39. #
  40. #     Make file for the Pine mail system for Solaris 2.2
  41. #      (this is very similar to the generic SV4 port)
  42. #
  43. #
  44. #   Most commonly fiddled flags for compiler.
  45. #   Uncomment the setttings desired here
  46. #
  47. RM=          rm -f
  48. LN=          ln -s
  49. MAKE=        make
  50. OPTIMIZE=    # -O
  51. PROFILE=     # -pg
  52. DEBUG=       -g -DDEBUG
  53.  
  54. IMAPDIR=     ../c-client
  55. PICODIR=     ../pico
  56.  
  57. STDLIBES=    -ltermlib -lsocket -lnsl -lgen
  58. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  59. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  60.  
  61. # Use these for the Solaris C compiler
  62. STDCFLAGS=   -Dconst= -DSV4 -DSYSTYPE=\"SOL\" -DMOUSE
  63. # LDCC= /usr/bin/cc
  64. # If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it,
  65. # it only has /usr/ucb/cc) then change LDCC to the following line and
  66. # give that a try.  This is still using the Solaris compiler but
  67. # leaving out the UCB compatibility includes and libraries.
  68. LDCC= $(PICODIR)/cc5.sol
  69.  
  70. # Use these for the gcc compiler
  71. # CC=    gcc
  72. #  STDCFLAGS=   -DSV4 -ansi -DANSI
  73. # LDCC=    gcc
  74. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  75.  
  76. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  77.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  78.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  79.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  80.     ttyout.o os.o
  81.  
  82. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  83.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  84.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  85.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  86.     ttyout.c os.c
  87.  
  88. pine:  $(obj) $(LOCLIBES)
  89.     echo "char datestamp[]="\"`date`\"";" > date.c
  90.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  91.     $(LDCC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  92.  
  93. # this is not part of pine
  94. pine-use:    pine-use.c
  95.     $(CC) -o pine-use pine-use.c
  96.  
  97. clean:
  98.     $(RM) *.o os.h os.c helptext.c helptext.h
  99.     cd osdep; make clean; cd ..
  100.  
  101.  
  102. HEADERS= headers.h pine.h os.h helptext.h context.h \
  103.       $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
  104.  
  105. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  106. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  107. args.o:        args.c      $(HEADERS)
  108. context.o:    context.c   $(HEADERS) $(IMAPDIR)/misc.h
  109. filter.o:    filter.c    $(HEADERS) $(PICODIR)/pico.h
  110. folder.o:    folder.c    $(HEADERS)
  111. help.o:        help.c      $(HEADERS)
  112. helptext.o:    helptext.c
  113. imap.o:            imap.c      $(HEADERS)
  114. init.o:        init.c      $(HEADERS)
  115. mailcap.o:    mailcap.c   $(HEADERS)
  116. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  117. mailindx.o:    mailindx.c  $(HEADERS)
  118. mailpart.o:    mailpart.c  $(HEADERS)
  119. mailview.o:    mailview.c  $(HEADERS)
  120. newmail.o:    newmail.c   $(HEADERS)
  121. os.o:        os.c         $(HEADERS)
  122. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  123. pine.o:        pine.c      $(HEADERS)
  124. reply.o:    reply.c     $(HEADERS)
  125. screen.o:    screen.c    $(HEADERS)
  126. send.o:            send.c      $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
  127. signals.o:    signals.c   $(HEADERS)
  128. status.o:    status.c    $(HEADERS)
  129. strings.o:    strings.c   $(HEADERS)
  130. ttyin.o:    ttyin.c     $(HEADERS)
  131. ttyout.o:    ttyout.c    $(HEADERS)
  132.  
  133. os.h:    osdep/os-sol.h
  134.     $(RM) os.h
  135.     $(LN) osdep/os-sol.h os.h
  136.  
  137. helptext.c:    pine.hlp
  138.         ./cmplhelp.sh  < pine.hlp > helptext.c
  139.  
  140. helptext.h:    pine.hlp
  141.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  142.  
  143. os.c:    osdep/os-sv4.c
  144.     $(RM) os.c
  145.     $(LN) osdep/os-sv4.c os.c
  146.  
  147. osdep/os-sv4.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  148.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  149.         osdep/diskquot.sv4 osdep/domnames osdep/err_desc \
  150.         osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
  151.         osdep/fnexpand osdep/header osdep/hostname.una \
  152.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  153.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  154.         osdep/rename osdep/srandom.dum osdep/tempfile osdep/tempnam \
  155.         osdep/writ_dir osdep/sunquota osdep/sendmail osdep/execview \
  156.         osdep/os-sv4.ic
  157.     cd osdep; $(MAKE) includer os-sv4.c; cd ..
  158.